package org.rsbot.injector;

import org.rsbot.injector.data.ClassData;
import org.rsbot.injector.data.FieldData;
import org.rsbot.injector.data.SetterData;
import org.rsbot.injector.data.GetterData;
import java.io.Serializable;
import java.util.List;
import java.util.Vector;

/**
 * @author Nader Sleiman
 */
public class ClassDataVector<T extends ClassData> extends Vector<T> implements Serializable {

    protected List<FieldData> getFieldDataVector(int index) {
        return super.get(index).fields;
    }

    protected List<GetterData> getGetterDataVector(int index) {
        return super.get(index).getters;
    }

    protected List<SetterData> getSetterDataVector(int index) {
        return super.get(index).setters;
    }

    protected List<String> getInterfaceDataVector(int index) {
        return super.get(index).interfaces;
    }

    protected String getSuperClass(int index) {
        return super.get(index).super_class;
    }
}
